Benjamin Otte [Sun, 5 Oct 2014 09:24:09 +0000 (11:24 +0200)]
x11: Remove overeager check
window->parent must exist, it's dereferenced a few lines below.
Avoids clang complaints.
Benjamin Otte [Sun, 5 Oct 2014 09:18:15 +0000 (11:18 +0200)]
gdk: Remove overeager checks
Parent is guaranteed to not be NULL. It can only ever be NULL for root
windows and root windows cannot be created with gdk_window_new() and
gdk_window_ensure_native() will exit early because they already are
native.
Also, both functions would crash a few lines below where parent gets
dereferenced.
Benjamin Otte [Sun, 5 Oct 2014 09:15:02 +0000 (11:15 +0200)]
x11: Remove unneeded and wrong return_if_fail()
It triggers coverity warnings.
Matthias Clasen [Sun, 5 Oct 2014 04:19:51 +0000 (00:19 -0400)]
GtkScrolledWindow: code cleanup
Remove return-if-fail parameter checks from static functions,
where we don't normally do these.
Matthias Clasen [Sun, 5 Oct 2014 04:13:09 +0000 (00:13 -0400)]
Cosmetic documentation improvements
Matthias Clasen [Sun, 5 Oct 2014 01:40:45 +0000 (21:40 -0400)]
Use .label in the theme css
Matthias Clasen [Sun, 5 Oct 2014 01:35:36 +0000 (21:35 -0400)]
Add a label style class
Lapo Calamandrei [Sat, 4 Oct 2014 22:56:48 +0000 (00:56 +0200)]
Adwaita: add vertically linked combos
Matthias Clasen [Sat, 4 Oct 2014 20:09:21 +0000 (16:09 -0400)]
docs: Add an index for 3.16 additions
Matthias Clasen [Sat, 4 Oct 2014 20:06:30 +0000 (16:06 -0400)]
Fix a thinko in the previous commit
GTK+ relies on this function silently failing for invalid data.
Matthias Clasen [Sat, 4 Oct 2014 19:52:02 +0000 (15:52 -0400)]
Add a function to load css from a resource
This is common enough that we should just provide an API for it
- we already had a function for this purpose anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=672946
Matthias Clasen [Sat, 4 Oct 2014 19:45:16 +0000 (15:45 -0400)]
Trivial documentation tweaks
Matthias Clasen [Sat, 4 Oct 2014 19:14:26 +0000 (15:14 -0400)]
widget-factory: Cosmetic improvement
Matthias Clasen [Sat, 4 Oct 2014 19:00:10 +0000 (15:00 -0400)]
widget-factory: More vertical linking examples
Lapo Calamandrei [Sat, 4 Oct 2014 18:23:10 +0000 (20:23 +0200)]
Adwaita: added style for vertically linked entries
Matthias Clasen [Sat, 4 Oct 2014 16:10:04 +0000 (12:10 -0400)]
printing: Avoid missing icons
I've noticed a missing image show up in my print dialog, where
the printer reported "printer-paused" as icon. Rearrange things
so we always fall back to "printer" for printer icons.
Matthias Clasen [Sat, 4 Oct 2014 16:19:15 +0000 (12:19 -0400)]
printing: Make GtkPrinter have a useful icon by default
It causes complication elsewhere if gtk_printer_get_icon_name()
returns NULL initially. So make the icon name default to
"printer".
Matthias Clasen [Sat, 4 Oct 2014 15:56:44 +0000 (11:56 -0400)]
printing: Another tweak to sheet drawing
After consultation, revisit the vertical centering to center
the first 'stack', and put the second one behind it.
Matthias Clasen [Sat, 4 Oct 2014 15:53:14 +0000 (11:53 -0400)]
inspector: Down the model tree
Show nested tree models, inside filter or sort models. Without
this, you can't get at the data.
Matthias Clasen [Sat, 4 Oct 2014 15:43:50 +0000 (11:43 -0400)]
Small code rearrangement
Benjamin Otte [Sat, 4 Oct 2014 15:18:18 +0000 (17:18 +0200)]
docs: Fix some copy/paste errors
Benjamin Otte [Fri, 3 Oct 2014 14:19:34 +0000 (16:19 +0200)]
print: Add a .paper style class
... and use it in the print preview.
Benjamin Otte [Fri, 3 Oct 2014 14:15:10 +0000 (16:15 +0200)]
docs: Add a man page fro gtk3-demo-application
It is an installed binary, so it needs a man page!
Matthias Clasen [Sat, 4 Oct 2014 15:00:10 +0000 (11:00 -0400)]
printing: Simplify sheet drawing
We don't need the scaling support anymore - icon sizes are
no longer settable.
Matthias Clasen [Sat, 4 Oct 2014 14:53:57 +0000 (10:53 -0400)]
print: Center sheet drawing horizontally
Center the page ordering indicator horizontally, relative to the
spinbutton above it.
Matthias Clasen [Sat, 4 Oct 2014 14:38:59 +0000 (10:38 -0400)]
print: Center sheet drawing vertically
Center the page ordering indicator vertically, relative to the
checkboxes next to it.
Matthias Clasen [Sat, 4 Oct 2014 03:20:18 +0000 (23:20 -0400)]
Remove an unused variable
Matthias Clasen [Sat, 4 Oct 2014 02:12:54 +0000 (22:12 -0400)]
inspector: Fix a thinko
We still need to possibly scan the toplevel after selecting
a widget, since we don't monitor the list of toplevels, so
the window may not be in our tree yet. This was broken in
commit
e7bd73f2b0db50c00ef390b756c6597674d7b473.
Piotr Drąg [Fri, 3 Oct 2014 15:38:20 +0000 (17:38 +0200)]
Updated POTFILES.skip
Benjamin Otte [Fri, 3 Oct 2014 13:48:29 +0000 (15:48 +0200)]
libgail: Add deprecation guards
Benjamin Otte [Fri, 3 Oct 2014 13:47:51 +0000 (15:47 +0200)]
imcontextxim: Remove broken custom drawing code
Just use regular GtkWindow styling instead.
Matthias Clasen [Fri, 3 Oct 2014 13:33:35 +0000 (09:33 -0400)]
GtkBuilder: Don't use deprecated types in examples
Matthias Clasen [Fri, 3 Oct 2014 13:29:45 +0000 (09:29 -0400)]
GtkBuilder: Undo the type name heuristic changes
These turned out to break existing ui files, concretely
GWeatherLocationEntry was no longer guessed correctly.
Update the testcases to reflect this, and add a testcase
for GWeather.
Matthias Clasen [Fri, 3 Oct 2014 05:13:02 +0000 (01:13 -0400)]
widget-factory: Make the record button more interesting
Matthias Clasen [Fri, 3 Oct 2014 05:03:52 +0000 (01:03 -0400)]
widget-factory: Add a sidebar example
Benjamin Otte [Fri, 3 Oct 2014 04:59:14 +0000 (06:59 +0200)]
gtk-demo: Replace old code
"Hey I know, let's do an easter egg!"
"What kind of easter egg?"
"We can nest lots of textviews!"
"Sounds cool!"
...
"But how does one see a textview inside a textview?"
"What do you mean?"
"Well, it just looks like black text on a white background."
"You mean it's the same as if we just duplicated the text?"
"Yeah!"
"Hrm, maybe we can put a frame around it."
"Sounds good. I'll stuff the textviews in a GtkFrame."
"What? Why? Let's use a GtkEventBox and override its background"
"Why is that a good idea when we have GtkFrame?"
"Because I said so!"
"Okay."
Benjamin Otte [Fri, 3 Oct 2014 04:48:18 +0000 (06:48 +0200)]
gtk-demo: Remove useless code in colorsel example
We have the color stored in a global variable already. There is
absolutely no need to also force it into the CSS machinery.
Benjamin Otte [Fri, 3 Oct 2014 04:45:38 +0000 (06:45 +0200)]
gtk-demo: Improve flowbox demo code
Overriding the background color for a color swatch is wrong. The color
is not the background, it's the foreground, so it should be painted in
a draw signal handler.
Benjamin Otte [Fri, 3 Oct 2014 04:40:13 +0000 (06:40 +0200)]
gtk-demo: Remove unneeded code
Overlays are transparent by default, no need to override them to be.
Benjamin Otte [Fri, 3 Oct 2014 04:38:21 +0000 (06:38 +0200)]
gtk-demo: Properly override font color in combobox example
Benjamin Otte [Fri, 3 Oct 2014 04:27:49 +0000 (06:27 +0200)]
stylecontext: Add missing docs for deprecations
Benjamin Otte [Fri, 3 Oct 2014 04:17:12 +0000 (06:17 +0200)]
fontchooserwidget: Use text attributes for the preview
... instead of adding a custom CSS provider.
Benjamin Otte [Fri, 3 Oct 2014 04:14:05 +0000 (06:14 +0200)]
cellrendereraccel: Remove unused variables
Benjamin Otte [Fri, 3 Oct 2014 03:52:49 +0000 (05:52 +0200)]
stylecontext: Deprecate functions
- gtk_style_context_get_background_color()
- gtk_style_context_get_border_color()
Those functions shouldn't be used anymore, because they don't represent
anything from the CSS styling we support. The background color often
isn't used due to background images and there are actually 4 different
border colors (1 for each side) - if there isn't also a border image in
use.
Benjamin Otte [Fri, 3 Oct 2014 03:46:49 +0000 (05:46 +0200)]
print: Improve sheet drawing a bit
This is only one step in the right direction. Long term this code should
probably be replaced by real widgets.
Benjamin Otte [Thu, 2 Oct 2014 13:56:50 +0000 (15:56 +0200)]
theming: Use gtk_style_context_peek_property()
instead of outdated accessors.
Benjamin Otte [Thu, 2 Oct 2014 13:38:32 +0000 (15:38 +0200)]
scrolledwindow: Rewrite overshoot code with regular styling
Instead of drawing a gradient in the background color, draw a CSS box.
And change the theme so instead of setting just a background color it
draws a gradient.
The resulting visuals are the same.
Benjamin Otte [Thu, 2 Oct 2014 12:07:27 +0000 (14:07 +0200)]
scrolledwindow: Don't use LIGHTEN operator
For the overshoot gradient, using OVER is fine. Simplifies the code and
increases performance.
Benjamin Otte [Thu, 2 Oct 2014 12:05:19 +0000 (14:05 +0200)]
scrolledwindow: Remove unused variable
Benjamin Otte [Thu, 2 Oct 2014 03:17:29 +0000 (05:17 +0200)]
label: Simplify rendering code
Instead of drawing text for selections and links manually, use the
gtk_render_background() and gtk_render_layout() functions.
As a side effect, this allows shadows on selected text and links
and real backgrounds (like gradients or images), too.
Benjamin Otte [Thu, 2 Oct 2014 02:17:14 +0000 (04:17 +0200)]
combobox: Don't set cell view background
This can be done with CSS these days. Also, these days the background of
cell views is transparent, so it doesn't even have to be done.
Benjamin Otte [Thu, 2 Oct 2014 02:15:57 +0000 (04:15 +0200)]
entrycompletion: Remove outdated code
I tried asking but nobody knew why it is necessary to set the background
color of the first cell. It seems with CSS styling this is completely
unnecessary.
Benjamin Otte [Thu, 2 Oct 2014 01:00:39 +0000 (03:00 +0200)]
sidebar: Fix gcc warning
Benjamin Otte [Mon, 16 Jun 2014 14:23:11 +0000 (16:23 +0200)]
themingengine: Call real API render functions
No need to call the private versions anymore now that the real ones
don't call into the theming engine.
Benjamin Otte [Mon, 16 Jun 2014 14:17:45 +0000 (16:17 +0200)]
themingengine: Stop using it
Instead, call the default theme engine's code directly.
Benjamin Otte [Mon, 16 Jun 2014 02:18:51 +0000 (04:18 +0200)]
themingengine: Move actual render functions to gtkrender.c
GtkThemingEngine just always calls
gtk_do_render_foo(engine->priv->context, ...)
now. Other than that, the code is unchanged.
Benjamin Otte [Sun, 15 Jun 2014 15:57:59 +0000 (17:57 +0200)]
stylecontext: Split render functions out into gtkrender.[ch]
Jasper St. Pierre [Fri, 29 Aug 2014 21:48:29 +0000 (14:48 -0700)]
cssshadowvalue: Move the check for blurring into its own function
This makes it easier to update the check later.
Jasper St. Pierre [Sat, 30 Aug 2014 00:33:27 +0000 (17:33 -0700)]
cssshadowvalue: Rename shadow_key to original_cr_key
shadow_key is a poor name for this, and we're going to add more user
data keys, so rename it to something more indicative of what it's used
for.
Benjamin Otte [Thu, 2 Oct 2014 00:23:34 +0000 (02:23 +0200)]
css: Queue resize for properties that affect clip
This fixes shadows that are animated not updating the clip of the widget
they are drawn on. An example of this are the buttons in the CSS shadows
example in gtk-demo.
Reftest included
Benjamin Otte [Wed, 1 Oct 2014 04:49:01 +0000 (06:49 +0200)]
css: Have finer-grained definitions for effects of CSS props
This adds the GtkCssAffects enum and implements it for all style
properties.
So far, this is not exposed outside of the implementation file.
Benjamin Otte [Wed, 1 Oct 2014 04:04:19 +0000 (06:04 +0200)]
image: Implement clipping support for icon-shadow
Testcase is attached.
Benjamin Otte [Mon, 29 Sep 2014 21:10:41 +0000 (23:10 +0200)]
tests: Add a test for a performance optimisation
text-shadow is too slow. Running this testcase reveals that.
Matthias Clasen [Fri, 3 Oct 2014 04:07:28 +0000 (00:07 -0400)]
Printing: Make the print dialog look better with bottom buttons
With buttons at the bottom, things were not looking good here:
no spacing, and a gray background. Add spacing, and put the buttons
on the white background.
Matthias Clasen [Fri, 3 Oct 2014 03:38:58 +0000 (23:38 -0400)]
widget-factory: Add more buttons
Some more button variations, found in the wild.
Matthias Clasen [Fri, 3 Oct 2014 03:37:38 +0000 (23:37 -0400)]
GtkRadioButton: Allow setting group more than once
It turns out that GtkBuilder will sometimes set a property
twice. Normally, this is harmless, but for GtkRadioButton:group,
it triggered a critical. Remove that.
Matthias Clasen [Fri, 3 Oct 2014 02:37:37 +0000 (22:37 -0400)]
Trivial typography improvement
Use an em dash instead of -- in documentation.
Matthias Clasen [Fri, 3 Oct 2014 02:01:14 +0000 (22:01 -0400)]
GtkSidebar: Don't use internal API
This makes it possible to copy the gtksidebar.c source into
other projects, for early adopters.
Matthias Clasen [Fri, 3 Oct 2014 01:59:55 +0000 (21:59 -0400)]
GtkSidebar: Fix a property type
The GtkSidebar:stack was meant to be an object property
of type GTK_TYPE_STACK. Make it so.
Matthias Clasen [Fri, 3 Oct 2014 01:42:08 +0000 (21:42 -0400)]
widget-factory: Add a scale button
Instead of two volume buttons, make the second one a scale button
and use microphones.
Matthias Clasen [Fri, 3 Oct 2014 01:29:54 +0000 (21:29 -0400)]
Properly extract strings from gtkprintunixdialog.ui
Since
972136803aa4f83e7, gtkprintunixdialog.ui contains non-ASCII
in translatable strings. These were not properly extracted.
Matthias Clasen [Fri, 3 Oct 2014 01:28:43 +0000 (21:28 -0400)]
Make non-ASCII strings in ui files work
Our extractor tool was not calling setlocale(), thus it only
produced output in the C locale, ie ASCII. Oops.
Matthias Clasen [Thu, 2 Oct 2014 22:02:11 +0000 (18:02 -0400)]
GtkExpander: Fix a problem with resize-toplevel
The toplevel resizing was not working properly when the
content had non-trivial height-for-width behavior (such
as a wrapping label).
Matthias Clasen [Thu, 2 Oct 2014 21:57:59 +0000 (17:57 -0400)]
gtk-demo: Make the sidebar demo scroll
Matthias Clasen [Thu, 2 Oct 2014 10:50:33 +0000 (06:50 -0400)]
GtkSidebar: Scroll when needed
Piotr Drąg [Thu, 2 Oct 2014 22:00:15 +0000 (00:00 +0200)]
Updated POTFILES.in
Lapo Calamandrei [Thu, 2 Oct 2014 19:16:30 +0000 (21:16 +0200)]
Adwaita: needs-attention on sidebar-item
Unfortunatelly it doesn't animate (not my fault) and it just work
on GtkLabel (my fault).
Lapo Calamandrei [Thu, 2 Oct 2014 18:40:18 +0000 (20:40 +0200)]
Adwaita: selectors cleanup and some refactoring
Marek Kasik [Mon, 14 Jul 2014 15:02:13 +0000 (17:02 +0200)]
Remove redundant checks for NULL
Remove checks for NULL before g_free() and g_clear_object().
Merge check for NULL, freeing of pointer and its setting
to NULL by g_clear_pointer().
https://bugzilla.gnome.org/show_bug.cgi?id=733157
Matthias Clasen [Thu, 2 Oct 2014 04:37:52 +0000 (00:37 -0400)]
GtkCellRendererAccel: Stop using deprecated API
Matthias Clasen [Thu, 2 Oct 2014 04:30:52 +0000 (00:30 -0400)]
GtkFontChooserWidget: Stop using deprecated API
Matthias Clasen [Thu, 2 Oct 2014 04:19:08 +0000 (00:19 -0400)]
GtkColorEditor: Fix missing background in popups
Matthias Clasen [Thu, 2 Oct 2014 04:11:02 +0000 (00:11 -0400)]
GtkColorEditor: Stop using deprecated API
This call was not needed at all.
Matthias Clasen [Thu, 2 Oct 2014 04:05:43 +0000 (00:05 -0400)]
GtkFontButton: Stop using deprecated API
Matthias Clasen [Thu, 2 Oct 2014 02:45:30 +0000 (22:45 -0400)]
GtkSidebar: not a listbox anymore
Applications are not expected to call GtkListBox API on a
sidebar, so don't make it one. Instead, make it have a
listbox.
Matthias Clasen [Thu, 2 Oct 2014 00:09:10 +0000 (20:09 -0400)]
GtkCalendar: deal better with a large allocation
When allocated more than the requested height, GtkCalendar
was 'falling apart'. Not only was the main part rendered
at the far end of the allocation, clicking on days was
broken in this scenario.
Fix this by always placing the main part directly under
the header and day names.
https://bugzilla.gnome.org/show_bug.cgi?id=737670
Matthias Clasen [Wed, 1 Oct 2014 23:52:04 +0000 (19:52 -0400)]
Trivial formatting fix
Matthias Clasen [Wed, 1 Oct 2014 23:30:12 +0000 (19:30 -0400)]
Fix a typo
Matthias Clasen [Wed, 1 Oct 2014 17:17:14 +0000 (13:17 -0400)]
Don't emit a useless warning
The warning may have had some value at some point, but if
people uninstall large icons just to make the warning go
away, it does more harm than good. So just remove it.
Matthias Clasen [Wed, 1 Oct 2014 11:11:43 +0000 (07:11 -0400)]
Fix fonts in context menus
Context menus inherit their style from the widget they are attached
to. This can have unexpected effects in particular for font, as can
be seen in gedit or gnome-calculator. Prevent this by resetting
the font of context-menus to the initial value.
Matthias Clasen [Wed, 1 Oct 2014 04:50:25 +0000 (00:50 -0400)]
Avoid compiler warnings
Matthias Clasen [Wed, 1 Oct 2014 04:49:59 +0000 (00:49 -0400)]
Add a few missing include guards
Matthias Clasen [Wed, 1 Oct 2014 04:45:23 +0000 (00:45 -0400)]
Provisional sidebar theming
needs-attention is not handled yet, here.
Ikey Doherty [Sat, 23 Aug 2014 16:38:42 +0000 (17:38 +0100)]
Add GtkSidebar
GtkSidebar behaves internally much like GtkStackSwitcher, providing a vertical
sidebar like widget. It is virtually identical in appearance to the widget
currently used in GNOME Tweak Tool.
This widget is connected to a GtkStack, and builds its own contents as a
GtkListBox subclass, using the "title" child property to provide a consistent
navigatable widget.
Being a subclass of GtkListBox it benefits immediately from strong keyboard
navigation, and minimal changes are required for theming.
https://bugzilla.gnome.org/show_bug.cgi?id=735293
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
Jasper St. Pierre [Tue, 30 Sep 2014 18:37:26 +0000 (12:37 -0600)]
reftests: Actually add a text-shadow to the text-shadow reftest
The reftest still passes, since the code still works, but we might as
well test what we claim to test.
Jasper St. Pierre [Tue, 30 Sep 2014 18:32:47 +0000 (12:32 -0600)]
label: Don't add in the allocation to our clip again
_gtk_widget_set_simple_clip already takes the allocation into account,
so we don't need to do it here.
Alexandre Franke [Tue, 30 Sep 2014 17:50:27 +0000 (17:50 +0000)]
Updated French translation
GNOME Translation Robot [Tue, 30 Sep 2014 13:01:46 +0000 (13:01 +0000)]
Updated Scottish Gaelic translation
Marek Černocký [Tue, 30 Sep 2014 11:27:20 +0000 (13:27 +0200)]
Updated Czech translation
Marek Černocký [Tue, 30 Sep 2014 11:27:14 +0000 (13:27 +0200)]
Updated Czech translation